package com.platform.modules.quality.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.platform.modules.quality.entity.QlyInspectionItemEntity;
import com.platform.modules.quality.entity.QlyInspectionItemReformEntity;


public interface QlyInspectionItemReformService extends IService<QlyInspectionItemReformEntity> {

	/**
	 * 查询 复查状态为空或者 1-合格的整改记录
	 * INS_ITEM_ID 问题id 必填
	 * @param entity
	 * @return
	 */
	Boolean isExist(QlyInspectionItemReformEntity entity);
	
	/**
	 * 保存整改记录 并更巡查记录状态
	 * @param entity
	 * @return
	 */
	void saveAndUpdateInspectionStatus(QlyInspectionItemReformEntity entity);

	/**
	 * 保存整改复查结果 并更巡查记录状态
	 * @param entity
	 * @return
	 */
	void saveReviewAndUpdateInspectionStatus(QlyInspectionItemReformEntity entity, String userId);
	
}
